<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>订单详情</title>
    <%@include file="/pages/common/head.jsp"%>
</head>
<body>

<div id="header">
    <img class="logo_img" alt="" src="static/img/logo.gif" >
    <span class="wel_word">购物车</span>
    <%@include file="/pages/common/login_success_menu.jsp"%>
</div>

<div id="main">

    <table>
        <tr>
            <td>商品名称</td>
            <td>数量</td>
            <td>单价</td>
            <td>金额</td>
        </tr>
            <c:if test="${empty sessionScope.orderItems}">
                <tr>
                    <td colspan="4">
                        <a href="index.jsp">亲, 该订单不存在!</a>
                    </td>
                </tr>
            </c:if>
        <c:if test="${not empty sessionScope.orderItems}">
            <c:forEach items="${sessionScope.orderItems}" var="item">
                <tr>
                    <td>${item.name}</td>
                    <td>${item.count}</td>
                    <td>${item.price}</td>
                    <td>${item.totalPrice}</td>
                </tr>
            </c:forEach>
        </c:if>
    </table>
</div>

<%@include file="/pages/common/last.jsp"%>
</body>
</html>
